package cn.git.service;

import cn.git.entity.Person;
import org.springframework.web.multipart.MultipartFile;

/**
 * @description: 缓存服务service
 * @program: bank-credit-sy
 * @author: lixuchun
 * @create: 2024-09-23
 */
public interface CacheService {

    /**
     * 根据id获取person
     * @param id id
     */
    Person getPersonById(String id);

    /**
     * 根据id获取person,缓存自定义key
     *
     * @param id id
     */
    Person getPersonByCusId(String id);

    /**
     * 更新person
     * @param person person
     */
    Person updatePerson(Person person);

    /**
     * 根据id删除person
     * @param id id
     */
    void deletePersonById(String id);

    /**
     * 获取bpmn信息
     * @param file file
     */
    void getBpmnInfoByFile(MultipartFile file);

}
